﻿using Barrage.Controls;
using Microsoft.VisualBasic.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BarrageGameAssistant.Controls
{
    public class GameProcessListView : ListViewEx
    {
        public GameProcessListView()
        {
            #region 设置列
            var headerId = new ColumnHeader
            {
                Name = "Id",
                Text = "序号",
                TextAlign = HorizontalAlignment.Left,
                Width = 80
            };
            Columns.Add(headerId);

            var headerCheckLogic = new ColumnHeader
            {
                Name = "CheckLogic",
                Text = "过程处理逻辑",
                TextAlign = HorizontalAlignment.Center,
                Width = 450
            };
            Columns.Add(headerCheckLogic);

            var headerPresetsValue = new ColumnHeader
            {
                Name = "PresetsValue",
                Text = "预设值",
                TextAlign = HorizontalAlignment.Center,
                Width = 100
            };
            Columns.Add(headerPresetsValue);

            var headerCurrentValue = new ColumnHeader
            {
                Name = "CurrentValue",
                Text = "当前值",
                TextAlign = HorizontalAlignment.Center,
                Width = 100
            };
            Columns.Add(headerCurrentValue);
            #endregion

            this.ShowItemToolTips = true;
        }
    }
}
